<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The ImagickPixel class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagickdraw.translate.html">ImagickDraw::translate</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagickpixel.clear.html">ImagickPixel::clear</a></div>
 <div class="up"><a href="book.imagick.html">ImageMagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.imagickpixel" class="reference">
 <h1 class="title">The <a href="class.imagickpixel.html" class="classname">ImagickPixel</a> class</h1>
 
 <div class="partintro"><p class="verinfo">(PECL imagick 2.0.0)</p>
  <div class="section" id="imagickpixel.synopsis">
   <h2 class="title">类摘要</h2>
   <div class="classsynopsis">
    <div class="ooclass"></div>
    <div class="classsynopsisinfo">
     <span class="ooclass"><strong class="classname">ImagickPixel</strong></span>
     {</div>
    <div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="imagickpixel.clear.html" class="methodname">clear</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="methodname"><a href="imagickpixel.construct.html" class="methodname">__construct</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$color</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="imagickpixel.destroy.html" class="methodname">destroy</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">array</span><span class="methodname"><a href="imagickpixel.getcolor.html" class="methodname">getColor</a></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$normalized</code><span class="initializer"> = false</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><a href="imagickpixel.getcolorasstring.html" class="methodname">getColorAsString</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="imagickpixel.getcolorcount.html" class="methodname">getColorCount</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">float</span><span class="methodname"><a href="imagickpixel.getcolorvalue.html" class="methodname">getColorValue</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$color</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">array</span><span class="methodname"><a href="imagickpixel.gethsl.html" class="methodname">getHSL</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="imagickpixel.ispixelsimilar.html" class="methodname">isPixelSimilar</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.imagickpixel.html" class="type ImagickPixel">ImagickPixel</a></span> <code class="parameter">$color</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$fuzz</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="imagickpixel.issimilar.html" class="methodname">isSimilar</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.imagickpixel.html" class="type ImagickPixel">ImagickPixel</a></span> <code class="parameter">$color</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$fuzz</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="imagickpixel.setcolor.html" class="methodname">setColor</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$color</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="imagickpixel.setcolorvalue.html" class="methodname">setColorValue</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$color</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$value</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="imagickpixel.sethsl.html" class="methodname">setHSL</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$hue</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$saturation</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$luminosity</code></span>
   )</div>

   }</div>
  </div>
 </div>
 

















































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="imagickpixel.clear.html">ImagickPixel::clear</a> — Clears resources associated with this object</li><li><a href="imagickpixel.construct.html">ImagickPixel::__construct</a> — The ImagickPixel constructor</li><li><a href="imagickpixel.destroy.html">ImagickPixel::destroy</a> — Deallocates resources associated with this object</li><li><a href="imagickpixel.getcolor.html">ImagickPixel::getColor</a> — Returns the color</li><li><a href="imagickpixel.getcolorasstring.html">ImagickPixel::getColorAsString</a> — Returns the color as a string</li><li><a href="imagickpixel.getcolorcount.html">ImagickPixel::getColorCount</a> — Returns the color count associated with this color</li><li><a href="imagickpixel.getcolorvalue.html">ImagickPixel::getColorValue</a> — Gets the normalized value of the provided color channel</li><li><a href="imagickpixel.gethsl.html">ImagickPixel::getHSL</a> — Returns the normalized HSL color of the ImagickPixel object</li><li><a href="imagickpixel.ispixelsimilar.html">ImagickPixel::isPixelSimilar</a> — Check the distance between this color and another</li><li><a href="imagickpixel.issimilar.html">ImagickPixel::isSimilar</a> — Check the distance between this color and another</li><li><a href="imagickpixel.setcolor.html">ImagickPixel::setColor</a> — Sets the color</li><li><a href="imagickpixel.setcolorvalue.html">ImagickPixel::setColorValue</a> — Sets the normalized value of one of the channels</li><li><a href="imagickpixel.sethsl.html">ImagickPixel::setHSL</a> — Sets the normalized HSL color</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagickdraw.translate.html">ImagickDraw::translate</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagickpixel.clear.html">ImagickPixel::clear</a></div>
 <div class="up"><a href="book.imagick.html">ImageMagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
